package org.microdream.easy.deploy.po;

import ice.server.comm.PoExtender;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "d_rent", schema = "easydeploy", catalog = "")
public class DRent  extends PoExtender implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String rentName;
    private int rentTrade;
    private String rentCode;
    private int rentType;
    private int rentScale;
    private String rentUser;
    private String rentPhone;
    private String rentAddress;
    private String rentWebsite;
    private String rentDescribe;
    private int islock;
    private String updateUser;
    private Timestamp updateTime;
    private Integer isDelete;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "rent_name")
    public String getRentName() {
        return rentName;
    }

    public void setRentName(String rentName) {
        this.rentName = rentName;
    }

    @Basic
    @Column(name = "rent_trade")
    public int getRentTrade() {
        return rentTrade;
    }

    public void setRentTrade(int rentTrade) {
        this.rentTrade = rentTrade;
    }

    @Basic
    @Column(name = "rent_code")
    public String getRentCode() {
        return rentCode;
    }

    public void setRentCode(String rentCode) {
        this.rentCode = rentCode;
    }

    @Basic
    @Column(name = "rent_type")
    public int getRentType() {
        return rentType;
    }

    public void setRentType(int rentType) {
        this.rentType = rentType;
    }

    @Basic
    @Column(name = "rent_scale")
    public int getRentScale() {
        return rentScale;
    }

    public void setRentScale(int rentScale) {
        this.rentScale = rentScale;
    }

    @Basic
    @Column(name = "rent_user")
    public String getRentUser() {
        return rentUser;
    }

    public void setRentUser(String rentUser) {
        this.rentUser = rentUser;
    }

    @Basic
    @Column(name = "rent_phone")
    public String getRentPhone() {
        return rentPhone;
    }

    public void setRentPhone(String rentPhone) {
        this.rentPhone = rentPhone;
    }

    @Basic
    @Column(name = "rent_address")
    public String getRentAddress() {
        return rentAddress;
    }

    public void setRentAddress(String rentAddress) {
        this.rentAddress = rentAddress;
    }

    @Basic
    @Column(name = "rent_website")
    public String getRentWebsite() {
        return rentWebsite;
    }

    public void setRentWebsite(String rentWebsite) {
        this.rentWebsite = rentWebsite;
    }

    @Basic
    @Column(name = "rent_describe")
    public String getRentDescribe() {
        return rentDescribe;
    }

    public void setRentDescribe(String rentDescribe) {
        this.rentDescribe = rentDescribe;
    }

    @Basic
    @Column(name = "islock")
    public int getIslock() {
        return islock;
    }

    public void setIslock(int islock) {
        this.islock = islock;
    }

    @Basic
    @Column(name = "update_user")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_time")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "is_delete")
    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DRent dRent = (DRent) o;
        return id == dRent.id &&
                rentTrade == dRent.rentTrade &&
                rentType == dRent.rentType &&
                rentScale == dRent.rentScale &&
                islock == dRent.islock &&
                Objects.equals(rentName, dRent.rentName) &&
                Objects.equals(rentCode, dRent.rentCode) &&
                Objects.equals(rentUser, dRent.rentUser) &&
                Objects.equals(rentPhone, dRent.rentPhone) &&
                Objects.equals(rentAddress, dRent.rentAddress) &&
                Objects.equals(rentWebsite, dRent.rentWebsite) &&
                Objects.equals(rentDescribe, dRent.rentDescribe) &&
                Objects.equals(updateUser, dRent.updateUser) &&
                Objects.equals(updateTime, dRent.updateTime) &&
                Objects.equals(isDelete, dRent.isDelete);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, rentName, rentTrade, rentCode, rentType, rentScale, rentUser, rentPhone, rentAddress, rentWebsite, rentDescribe, islock, updateUser, updateTime, isDelete);
    }
}
